<?php
/* @var $this UserController */
/* @var $model User */

?>

<h1>View User #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'email',
		'customer_name',
		'mobile',
		'address',
		'status',
		array(
			'name'=>'referral_id',
			'value'=>CHtml::link($model->referral_id, array("view","id"=>$model->referral_id)),
			'type'=>'html',
		),
		array(
			'name'=>'referrer.customer_name',
			'value'=>CHtml::link(CHtml::value($model, "referrer.customer_name", 'Not set'), array("view","id"=>$model->referral_id)),
			'type'=>'html',
			'label'=>"Referrer Name",
		),
		'referralCount',
		'activate_code',
		'create_time:datetime',
		'update_time:datetime',
	),
)); ?>


<?php echo CHtml::link('Complete', array('admin')) ?>